// number
let speed: number = 150, mileage = 3000;
const cost = mileage / speed;
const a = Math.PI

let n1ame = {
    ff: 1233,
    strategy: Symbol('12321')
}
const b = n1ame.ff;
const c = n1ame.strategy;
const bc = '123112';
const d = bc;
// symbol
const strategy: symbol = Symbol('strategy');
const actuator = {
    [strategy]: 'default'
}

const abc: unique symbol = Symbol('a');
let key1 = Symbol('key1');
const key2 = Symbol('key2');
const key3 = key2

type Student = {
    name: string,
    age: number
}

type Person = {
    name: string,
    age: number
}

let stu: Student = {
    name: 'fatgod',
    age: 23
}

const person: Person = {
    name: 'fatbaby',
    age: 2
}


// -----------------------------------------array-----------------------------------------

const prices: number[] = [228, 400, 520];
const games: Array<String> = ["Elden Ring", "Resident Evil 4", "Monster Hunter World"];


// -----------------------------------------泛型-----------------------------------------

type Some = {
    width: number,
    height: number
}

type Fuck = {
    width:number
}

let some : Some = {
    width: 1,
    height: 2
}

let fuck : Fuck = some;

console.log(fuck)